﻿using Microsoft.AspNetCore.Components;

namespace BBCore.Server.Components.Pages.Admins.Icon
{
    public partial class MenuIconList_HYJ
    {
        [Parameter]
        public string? Value { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [Parameter]
        public EventCallback<string?> ValueChanged { get; set; }

        private async Task OnSelctedIcon()
        {
            if (ValueChanged.HasDelegate)
            {
                await ValueChanged.InvokeAsync(Value);
            }
        }
    }
}
